home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 November / CPNL0711.ISO / admin / secure / Tor - Privoxy - Vidalia.exe / Privoxy / templates / show-status < prev    next >
Text File  |  2006-11-04  |  13KB  |  336 lines

  1. ##########################################################
  2. #
  3. # Show-Status-CGI Output template for Privoxy.
  4. #
  5. # USING HTML TEMPLATES:
  6. # ---------------------
  7. #
  8. # Template files are written win plain HTML, with a few
  9. # additions:
  10. # - Lines that start with a '#' character like this one
  11. #   are ignored
  12. #
  13. # - Each item in the below list of exported symbols will
  14. #   be replaced by dynamically generated text, if they
  15. #   are enclosed in '@'-characters. E.g. The string @version@
  16. #   will be replaced by the version number of Privoxy.
  17. #
  18. # - One special application of this is to make whole blocks
  19. #   of the HTML template disappear if the condition <name>
  20. #   is not given. Simply enclose the block between the two
  21. #   strings @if-<name>start and if-<name>-end@. The strings
  22. #   should be placed in HTML comments (<!-- -->), so the
  23. #   html structure won't be messed when the magic happens.
  24. #   
  25. # USABLE SYMBOLS IN THIS TEMPLATE:
  26. # --------------------------------
  27. #
  28. #  my-ip-addr:
  29. #    The IP-address that the client used to reach this proxy
  30. #  my-hostname:
  31. #    The hostname associated with my-ip-addr
  32. #  admin-address:
  33. #    The email address of the pxoxy's administrator, as configured
  34. #    in the config file
  35. #  default-cgi:
  36. #    The URL for the "main menu" builtin CGI of this proxy
  37. #  menu:
  38. #    List of <li> elements linking to the other available CGIs
  39. #  version:
  40. #    The version number of the proxy software
  41. #  code-status:
  42. #    The development status of the proxy software: "alpha", "beta",
  43. #    or "stable".
  44. #  homepage:
  45. #    The URL of the SourceForge ijbswa project, who maintains this
  46. #    software.
  47. #
  48. #  redirect-url:
  49. #    The URL to a script that will redirect to the Privoxy
  50. #    documentation for a given item  
  51. #  invocation:
  52. #    The command line with whitch Privoxy was invoked
  53. #  options:
  54. #    The options read from the configfile, linked to their
  55. #    explanations, plus warnings if parsing acl or forward
  56. #    statements produced errors.
  57. #  sourceversions:
  58. #    A HTML-formatted list of the individual source file cvs versions
  59. #  defines:
  60. #    A HTML-formatted list of all conditional #defines used when
  61. #    Privoxy was compiled
  62. #
  63. #  
  64. # CONDITIONAL SYMBOLS FOR THIS TEMPLATE AND THEIR DEPANDANT SYMBOLS:
  65. # ------------------------------------------------------------------
  66. #
  67. #  unstable:
  68. #    This is an alpha or beta release of the proxy software
  69. #  have-adminaddr-info:
  70. #    An e-mail address for the local Privoxy adminstrator has
  71. #    been specified and is available through the "admin-address"
  72. #    symbol
  73. #  have-proxy-info:
  74. #    A URL for online documentation about this proxy has been
  75. #    specified and is available through the "proxy-info-url"
  76. #    symbol
  77. #  have-help-info:
  78. #    If either have-proxy-info is true or have-adminaddr-info is
  79. #    true, have-help-info is true.  Used to conditionally include
  80. #    a grey box for any and all help info.
  81. #  statistics:
  82. #    Privoxy was compiled with statistics support
  83. #  have-stats:
  84. #    There have been previous requests and statistics have
  85. #    been collected. In this case, the following symbols
  86. #    are available:
  87. #    requests-received:
  88. #      The number of requests received so far
  89. #    requests-blocked:
  90. #      The number of request blocked so far
  91. #    percent-blocked:
  92. #      The percentage of blocked requests
  93. #  have-no-stats:
  94. #    There haven't any statistics been collected yet
  95. #  pcrs-support:
  96. #    Privoxy was compiled with pcrs support
  97. #  trust-support:
  98. #    Privoxy was compiled with trust support
  99. #  actions-filename:
  100. #    The path to the actions file.
  101. #  re-filter-filename:
  102. #    The path to the re_filter file. Only available if
  103. #    pcrs-support is set
  104. #  trust-filename:
  105. #    The path to the trust file.Only available if
  106. #    trust-support is set
  107. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  108. <html>
  109.  
  110. <head>
  111.   <title>Privoxy@@my-hostname@: Proxy Status</title>
  112.   <meta http-equiv="Content-Style-Type" content="text/css">
  113.   <meta http-equiv="Content-Script-Type" content="text/javascript">
  114.   <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
  115.   <meta name="robots" content="noindex,nofollow">
  116.   <link rel="stylesheet" type="text/css" href="@default-cgi@send-stylesheet">
  117. </head>
  118.  
  119. <body>
  120.  
  121.   <table cellpadding="20" cellspacing="10" border="0" width="100%">
  122.     <tr>
  123.       <td class="title">
  124.  
  125. #include mod-title
  126.  
  127.       </td>
  128.     </tr>
  129.  
  130. <!-- @if-unstable-start -->
  131. # This will only appear if CODE_STATUS is "alpha" or "beta". See configure.in
  132.     <tr>
  133.       <td class="warning">
  134.  
  135. #include mod-unstable-warning
  136.  
  137.       </td>
  138.     </tr>
  139. <!-- if-unstable-end@ -->
  140.  
  141.     <tr>
  142.       <td class="box">
  143.         <h2>The following files are in use:</h2>
  144.         <p>
  145.           <table class="transparent">
  146.             <tr>
  147.               <th colspan="2"><a href="@user-manual@@actions-help-prefix@ACTIONS-FILE">Actions Files:</a></th>
  148.             </tr>
  149.               @actions-filenames@
  150.            <tr>
  151.               <th colspan="2"><a href="@user-manual@filter-file.html">Filter Files:</a></th>
  152.            </tr>
  153.            <tr>
  154.              <td>
  155.                @re-filter-filename@
  156.              </td>
  157.            </tr>
  158. <!-- @if-trust-support-start -->
  159.            <tr>
  160.               <th colspan="2"><a href="@user-manual@config.html#TRUSTFILE">Trust File:</a></th>
  161.            </tr>
  162.             <td>
  163.                @trust-filename@
  164.              </td>
  165.              <td class="buttons">
  166.                <!-- @if-have-trustfile-start -->
  167.                <a href="show-status?file=trust">View</a>
  168.                <!-- if-have-trustfile-end@ -->
  169.             </td>
  170.            </tr>
  171. <!-- if-trust-support-end@ -->
  172.           </table>
  173.         </p>
  174.       </td>
  175.     </tr>
  176.  
  177.     <tr>
  178.       <td class="box">
  179.         <h2>Privoxy was <a href="@user-manual@startup.html#CMDOPTIONS">invoked</a> as follows:</h2>
  180.         <p>@invocation@</p>
  181.       </td>
  182.     </tr>
  183.  
  184.     <tr>
  185.       <td class="box">
  186.         <h2>The following options were given in the <a href="@user-manual@config.html">config file</a>:</h2>
  187.         <p>@options@</p>
  188.       </td>
  189.     </tr>
  190.  
  191. <!-- @if-statistics-start -->
  192.     <tr>
  193.       <td class="box">
  194.         <h2>Blocking Statistics:</h2>
  195.         <p>
  196.   <!-- @if-have-stats-start -->
  197.           @requests-blocked@ out of @requests-received@ requests have been blocked,
  198.           which equals a block rate of @percent-blocked@%.
  199. <!-- if-have-stats-end@ -->
  200. <!-- @if-have-no-stats-start -->
  201.           There haven't been any requests so far.
  202. <!-- if-have-no-stats-end@ -->
  203.         </p>                                   
  204.       </td>
  205.     </tr>
  206. <!-- if-statistics-end@ -->
  207.  
  208.     <tr>
  209.       <td class="box">
  210.         <h2>Conditional #defines:</h2>
  211.         <p>
  212.           <table border="1" style="margin-left: 10px">
  213.             <tr> 
  214.               <th>#define</th> <th>Enabled?</th> <th>Effects when enabled</th>
  215.             </tr>
  216.             <tr>
  217.               <td><code>FEATURE_ACL</code></td>
  218.               <td>@if-FEATURE_ACL-then@ Yes @else-not-FEATURE_ACL@ No @endif-FEATURE_ACL@</td>
  219.               <td>Allows the use of an ACL to control access to the proxy by IP address.</td>
  220.             </tr>
  221.             <tr>
  222.               <td><code>FEATURE_CGI_EDIT_ACTIONS</code></td>
  223.               <td>@if-FEATURE_CGI_EDIT_ACTIONS-then@ Yes @else-not-FEATURE_CGI_EDIT_ACTIONS@ No @endif-FEATURE_CGI_EDIT_ACTIONS@</td>
  224.               <td>Allows the use of the web-based actions file 
  225.                  editor@if-FEATURE_CGI_EDIT_ACTIONS-then@, which is <a href="@default-cgi@edit-actions">here</a>@else-not-FEATURE_CGI_EDIT_ACTIONS@@endif-FEATURE_CGI_EDIT_ACTIONS@.</td>
  226.             </tr>
  227.             <tr>
  228.               <td><code>FEATURE_COOKIE_JAR</code></td>
  229.               <td>@if-FEATURE_COOKIE_JAR-then@ Yes @else-not-FEATURE_COOKIE_JAR@ No @endif-FEATURE_COOKIE_JAR@</td>
  230.               <td>Allows the use of a "cookie jar" file to capture cookies.</td>
  231.             </tr>
  232.             <tr>
  233.               <td><code>FEATURE_FAST_REDIRECTS</code></td>
  234.               <td>@if-FEATURE_FAST_REDIRECTS-then@ Yes @else-not-FEATURE_FAST_REDIRECTS@ No @endif-FEATURE_FAST_REDIRECTS@</td>
  235.               <td>Allows the +fast-redirects action, to bypass redirect and logging scripts.</td>
  236.             </tr>
  237.             <tr>
  238.               <td><code>FEATURE_FORCE_LOAD</code></td>
  239.               <td>@if-FEATURE_FORCE_LOAD-then@ Yes @else-not-FEATURE_FORCE_LOAD@ No @endif-FEATURE_FORCE_LOAD@</td>
  240.               <td>Allows bypassing all filtering for a single page using the prefix "<code>@FORCE_PREFIX@</code>".</td>
  241.             </tr>
  242.             <tr>
  243.               <td><code>FEATURE_IMAGE_BLOCKING</code></td>
  244.               <td>@if-FEATURE_IMAGE_BLOCKING-then@ Yes @else-not-FEATURE_IMAGE_BLOCKING@ No @endif-FEATURE_IMAGE_BLOCKING@</td>
  245.               <td>Allows the +image action, to send "blocked" images instead of HTML.</td>
  246.             </tr>
  247.             <tr>
  248.               <td><code>FEATURE_IMAGE_DETECT_MSIE</code></td>
  249.               <td>@if-FEATURE_IMAGE_DETECT_MSIE-then@ Yes @else-not-FEATURE_IMAGE_DETECT_MSIE@ No @endif-FEATURE_IMAGE_DETECT_MSIE@</td>
  250.               <td>Enables automatic detection of image and HTML requests from
  251.                Microsoft Internet Explorer users, overriding the setting of 
  252.                +image in the actions file.</td>
  253.             </tr>
  254.             <tr>
  255.               <td><code>FEATURE_KILL_POPUPS</code></td>
  256.               <td>@if-FEATURE_KILL_POPUPS-then@ Yes @else-not-FEATURE_KILL_POPUPS@ No @endif-FEATURE_KILL_POPUPS@</td>
  257.               <td>Allows the +no-popups action, to block JavaScript popups.</td>
  258.             </tr>
  259.             <tr>
  260.               <td><code>FEATURE_NO_GIFS</code></td>
  261.               <td>@if-FEATURE_NO_GIFS-then@ Yes @else-not-FEATURE_NO_GIFS@ No @endif-FEATURE_NO_GIFS@</td>
  262.               <td>Use PNG instead of GIF for the built-in images.</td>
  263.             </tr>
  264.             <tr>
  265.               <td><code>FEATURE_PTHREAD</code></td>
  266.               <td>@if-FEATURE_PTHREAD-then@ Yes @else-not-FEATURE_PTHREAD@ No @endif-FEATURE_PTHREAD@</td>
  267.               <td>Use POSIX threads rather than native threads</td>
  268.             </tr>
  269.             <tr>
  270.               <td><code>FEATURE_STATISTICS</code></td>
  271.               <td>@if-FEATURE_STATISTICS-then@ Yes @else-not-FEATURE_STATISTICS@ No @endif-FEATURE_STATISTICS@</td>
  272.               <td>Enables the statistics function.</td>
  273.             </tr>
  274.             <tr>
  275.               <td><code>FEATURE_TOGGLE</code></td>
  276.               <td>@if-FEATURE_TOGGLE-then@ Yes @else-not-FEATURE_TOGGLE@ No @endif-FEATURE_TOGGLE@</td>
  277.               <td>Allow Privoxy to be "disabled" so it is just a normal non-blocking non-anonymizing proxy.</td>
  278.             </tr>
  279.             <tr>
  280.               <td><code>FEATURE_TRUST</code></td>
  281.               <td>@if-FEATURE_TRUST-then@ Yes @else-not-FEATURE_TRUST@ No @endif-FEATURE_TRUST@</td>
  282.               <td>Allows the use of trust files.</td>
  283.             </tr>
  284.             <tr>
  285.               <td><code>STATIC_PCRE</code></td>
  286.               <td>@if-STATIC_PCRE-then@ Yes @else-not-STATIC_PCRE@ No @endif-STATIC_PCRE@</td>
  287.               <td>Use the supplied statically-linked PCRE library.  This is set automatically
  288.                by <code>./configure</code> if you do not have the libpcre installed.</td>
  289.             </tr>
  290.             <tr>
  291.               <td><code>STATIC_PCRS</code></td>
  292.               <td>@if-STATIC_PCRS-then@ Yes @else-not-STATIC_PCRS@ No @endif-STATIC_PCRS@</td>
  293.               <td>Use the supplied statically-linked PCRS library.  This is set automatically
  294.                by <code>./configure</code> if you do not have the libpcrs installed.</td>
  295.             </tr>
  296.           </table>
  297.         </p>
  298.       </td>
  299.     </tr>
  300.  
  301.     <tr>
  302.       <td class="box">
  303.         <h2>More Privoxy:</h2>
  304.         <ul>@menu@<li><a href="@user-manual@">Documentation</a></li></ul>
  305.       </td>
  306.     </tr>
  307.  
  308.     <tr>
  309.       <td class="info">
  310.  
  311. #include mod-support-and-service
  312.  
  313.       </td>
  314.     </tr>
  315.  
  316. <!-- @if-have-help-info-start -->
  317.     <tr>
  318.       <td class="info">
  319.  
  320. #include mod-local-help
  321.  
  322.       </td>
  323.     </tr>
  324. <!-- if-have-help-info-end@ -->
  325.  
  326.      <tr>
  327.       <td>
  328.         <p class="small">Valid <a href="http://validator.w3.org/">HTML 4.01 Strict</a></p>
  329.       </td>
  330.     </tr>   
  331.   </table>
  332.  
  333. </body>
  334. </html>
  335.